import { Component } from '@angular/core';
import {IonicPage, ModalController, NavController, NavParams} from 'ionic-angular';
import {ExchangeRoomConfirmPage} from "../exchange-room-confirm/exchange-room-confirm";
import {RepealRoomConfirmPage} from "../repeal-room-confirm/repeal-room-confirm";
import {ContractApiService, ContractMsg, Rentbill} from "../../api/contract-api.service";
import {ROUTER} from "../../service/router.service";
import {LocalStorage} from "../../utils/localstorage.utils";
import {CheckStandModel} from "../../model/checkstand.model";
import {USER} from "../../service/user.service";
import {GOODS} from "../../api/goods-api";
/**
 * Generated class for the CleanningDatailPage page.
 *
 * See http://ionicframework.com/docs/components/#navigation for more info
 * on Ionic pages and navigation.
 */
@IonicPage()
@Component({
  selector: 'page-cleanning-datail',
  templateUrl: 'cleanning-datail.html',
})
export class CleanningDatailPage {

  private id: any;
  private data:any={};

  constructor(public navCtrl: NavController,
              public navParams: NavParams,
              private modalCtrl: ModalController,
              private GOODS: GOODS,
              private ls:LocalStorage,
              private USER:USER,
              private ROUTER: ROUTER) {
    this.id = navParams.get('id');
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad RentingDetailPage');
    this.GOODS.getCleaningDetail(this.id,v => {
      console.log(v)
      this.data = v
    })
    console.log('ionViewDidLoad CleanningDatailPage');
  }

}
